package com.bi.common;

/**
 * 错误码
 *
 * @author yanzhen
 **/
public enum ErrorCode {

    PARAMS_ERROR(40000, "请求参数错误", ""),
    NULL_ERROR(40001, "请求数据为空", ""),
    NO_LOGIN(40010, "未登录", ""),
    NO_AUTH(40011, "无权限", ""),
    TO_MANY_REQUEST(40100, "太多求了，系统暂时繁忙，请稍后重试！ ！！", ""),
    NO_FOUND_ERROR(40111, "没找到", ""),
    SYSTEM_ERROR(40101, "未知错误", "");

    private int code;
    private String msg;

    private String description;

    ErrorCode(int code, String msg, String description) {
        this.code = code;
        this.msg = msg;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public String getDescription() {
        return description;
    }
}
